package com.tzl.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;

@Configuration
public class MyConfig {
	@Bean
	public RedisConnectionFactory redisConnectionFactory(){
        return new LettuceConnectionFactory("192.168.56.10",8080);
	}
}
